|
|
|
|
|
|
|
Figure 8.2.
One concept of the data-entry form, using many of the
advanced Visual Basic controls. |
|
|
|
|
|
|
|
|
Also, you can see that the form is split in two with the TabStrip control to make unique areas for business and personal information for that entry. Now, what are the tasks that this form must perform when a new entry is added? This list is fairly standard for most database applications: |
|
|
|
|
|
|
|
|
Validate the dates entered. |
|
|
|
|
|
|
|
|
Edit the phone numbers for the correct amount of digits. |
|
|
|
|
|
|
|
|
Verify that this person isn't already in the database. |
|
|
|
|
|
|
|
|
Allow users to cancel the process, if needed. |
|
|
|
|
|
|
|
|
Provide easy ways to select static information (such as state names). |
|
|
|
|
|
|
|
|
Give positive feedback to users when the data is finally added. |
|
|
|
|
|
|
|
|
Some of these tasks are code-related, whereas others are really database-related. |
|
|
|
|
|
|
|
|
The second form gives users a way to display all the information in an entry without having to change sections of the display. For this to look good, you have to decide the way to display the information. Some applications use the same form as the entry form, but set it up so that the data can't be modified. Today's lesson uses the same form, with some modifications. This version of the form would have the following extra command buttons visible on the form: |
|
|
|
|
|